From: Daniel De Graaf Date: Thu, 2 Feb 2012 15:18:50 +0000 (+0000) Subject: xsm: Use mapped IRQ not PIRQ in unmap_domain_pirq X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=dfc926ceb79d33d2742fca7e8d872348d940dea3;p=xen.git xsm: Use mapped IRQ not PIRQ in unmap_domain_pirq XSM permissions are defined in terms of IRQs, not PIRQs; use the correct number when checking permission in unmap_domain_pirq. Signed-off-by: Daniel De Graaf Committed-by: Keir Fraser --- diff --git a/xen/arch/x86/physdev.c b/xen/arch/x86/physdev.c index a3ceb7d84f..05fff9e8c8 100644 --- a/xen/arch/x86/physdev.c +++ b/xen/arch/x86/physdev.c @@ -239,7 +239,7 @@ int physdev_unmap_pirq(domid_t domid, int pirq) if ( !IS_PRIV_FOR(current->domain, d) ) goto free_domain; - ret = xsm_irq_permission(d, pirq, 0); + ret = xsm_irq_permission(d, domain_pirq_to_irq(d, pirq), 0); if ( ret ) goto free_domain;